
package com.servicesDirectory.action.lookup;

import com.opensymphony.xwork2.ActionSupport;
import com.servicesDirectory.common.vo.BusinessVO;
import com.servicesDirectory.dao.lookup.BaseLookupDAOImpl;
import java.util.List;

public class BusinessLookupAction extends ActionSupport {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected BusinessVO business;   
    private List<BusinessVO> list;

    public BusinessVO getBusiness() {
        return business;
    }

    public void setBusiness(BusinessVO business) {
        this.business = business;
    }

    public List<BusinessVO> getList() {
        return list;
    }

    public void setList(List<BusinessVO> list) {
        this.list = list;
    }
    @Override
    public String execute() {
        BaseLookupDAOImpl blDAO = new BaseLookupDAOImpl();        
           
        this.list = blDAO.businessLookup(business);
        return SUCCESS;
        
    }

    @Override
    public void validate() {
    }

   
}
